Optimal. Leaf size=66 \[ -\frac{\sqrt{2 x+3} (35 x+29)}{3 x^2+5 x+2}-82 \tanh ^{-1}\left (\sqrt{2 x+3}\right )+\frac{316 \tanh ^{-1}\left (\sqrt{\frac{3}{5}} \sqrt{2 x+3}\right )}{\sqrt{15}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0399227, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.148, Rules used = {820, 826, 1166, 207} \[ -\frac{\sqrt{2 x+3} (35 x+29)}{3 x^2+5 x+2}-82 \tanh ^{-1}\left (\sqrt{2 x+3}\right )+\frac{316 \tanh ^{-1}\left (\sqrt{\frac{3}{5}} \sqrt{2 x+3}\right )}{\sqrt{15}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 820
Rule 826
Rule 1166
Rule 207
Rubi steps
\begin{align*} \int \frac{(5-x) \sqrt{3+2 x}}{\left (2+5 x+3 x^2\right )^2} \, dx &=-\frac{\sqrt{3+2 x} (29+35 x)}{2+5 x+3 x^2}-\int \frac{76+35 x}{\sqrt{3+2 x} \left (2+5 x+3 x^2\right )} \, dx\\ &=-\frac{\sqrt{3+2 x} (29+35 x)}{2+5 x+3 x^2}-2 \operatorname{Subst}\left (\int \frac{47+35 x^2}{5-8 x^2+3 x^4} \, dx,x,\sqrt{3+2 x}\right )\\ &=-\frac{\sqrt{3+2 x} (29+35 x)}{2+5 x+3 x^2}+246 \operatorname{Subst}\left (\int \frac{1}{-3+3 x^2} \, dx,x,\sqrt{3+2 x}\right )-316 \operatorname{Subst}\left (\int \frac{1}{-5+3 x^2} \, dx,x,\sqrt{3+2 x}\right )\\ &=-\frac{\sqrt{3+2 x} (29+35 x)}{2+5 x+3 x^2}-82 \tanh ^{-1}\left (\sqrt{3+2 x}\right )+\frac{316 \tanh ^{-1}\left (\sqrt{\frac{3}{5}} \sqrt{3+2 x}\right )}{\sqrt{15}}\\ \end{align*}
Mathematica [A] time = 0.0726592, size = 66, normalized size = 1. \[ -\frac{\sqrt{2 x+3} (35 x+29)}{3 x^2+5 x+2}-82 \tanh ^{-1}\left (\sqrt{2 x+3}\right )+\frac{316 \tanh ^{-1}\left (\sqrt{\frac{3}{5}} \sqrt{2 x+3}\right )}{\sqrt{15}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.016, size = 86, normalized size = 1.3 \begin{align*} -{\frac{34}{3}\sqrt{3+2\,x} \left ( 2\,x+{\frac{4}{3}} \right ) ^{-1}}+{\frac{316\,\sqrt{15}}{15}{\it Artanh} \left ({\frac{\sqrt{15}}{5}\sqrt{3+2\,x}} \right ) }-6\, \left ( 1+\sqrt{3+2\,x} \right ) ^{-1}-41\,\ln \left ( 1+\sqrt{3+2\,x} \right ) -6\, \left ( -1+\sqrt{3+2\,x} \right ) ^{-1}+41\,\ln \left ( -1+\sqrt{3+2\,x} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.46746, size = 132, normalized size = 2. \begin{align*} -\frac{158}{15} \, \sqrt{15} \log \left (-\frac{\sqrt{15} - 3 \, \sqrt{2 \, x + 3}}{\sqrt{15} + 3 \, \sqrt{2 \, x + 3}}\right ) - \frac{2 \,{\left (35 \,{\left (2 \, x + 3\right )}^{\frac{3}{2}} - 47 \, \sqrt{2 \, x + 3}\right )}}{3 \,{\left (2 \, x + 3\right )}^{2} - 16 \, x - 19} - 41 \, \log \left (\sqrt{2 \, x + 3} + 1\right ) + 41 \, \log \left (\sqrt{2 \, x + 3} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.5939, size = 313, normalized size = 4.74 \begin{align*} \frac{158 \, \sqrt{15}{\left (3 \, x^{2} + 5 \, x + 2\right )} \log \left (\frac{\sqrt{15} \sqrt{2 \, x + 3} + 3 \, x + 7}{3 \, x + 2}\right ) - 615 \,{\left (3 \, x^{2} + 5 \, x + 2\right )} \log \left (\sqrt{2 \, x + 3} + 1\right ) + 615 \,{\left (3 \, x^{2} + 5 \, x + 2\right )} \log \left (\sqrt{2 \, x + 3} - 1\right ) - 15 \,{\left (35 \, x + 29\right )} \sqrt{2 \, x + 3}}{15 \,{\left (3 \, x^{2} + 5 \, x + 2\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 66.3154, size = 212, normalized size = 3.21 \begin{align*} 340 \left (\begin{cases} \frac{\sqrt{15} \left (- \frac{\log{\left (\frac{\sqrt{15} \sqrt{2 x + 3}}{5} - 1 \right )}}{4} + \frac{\log{\left (\frac{\sqrt{15} \sqrt{2 x + 3}}{5} + 1 \right )}}{4} - \frac{1}{4 \left (\frac{\sqrt{15} \sqrt{2 x + 3}}{5} + 1\right )} - \frac{1}{4 \left (\frac{\sqrt{15} \sqrt{2 x + 3}}{5} - 1\right )}\right )}{75} & \text{for}\: x \geq - \frac{3}{2} \wedge x < - \frac{2}{3} \end{cases}\right ) - 282 \left (\begin{cases} - \frac{\sqrt{15} \operatorname{acoth}{\left (\frac{\sqrt{15} \sqrt{2 x + 3}}{5} \right )}}{15} & \text{for}\: 2 x + 3 > \frac{5}{3} \\- \frac{\sqrt{15} \operatorname{atanh}{\left (\frac{\sqrt{15} \sqrt{2 x + 3}}{5} \right )}}{15} & \text{for}\: 2 x + 3 < \frac{5}{3} \end{cases}\right ) + 41 \log{\left (\sqrt{2 x + 3} - 1 \right )} - 41 \log{\left (\sqrt{2 x + 3} + 1 \right )} - \frac{6}{\sqrt{2 x + 3} + 1} - \frac{6}{\sqrt{2 x + 3} - 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.08987, size = 138, normalized size = 2.09 \begin{align*} -\frac{158}{15} \, \sqrt{15} \log \left (\frac{{\left | -2 \, \sqrt{15} + 6 \, \sqrt{2 \, x + 3} \right |}}{2 \,{\left (\sqrt{15} + 3 \, \sqrt{2 \, x + 3}\right )}}\right ) - \frac{2 \,{\left (35 \,{\left (2 \, x + 3\right )}^{\frac{3}{2}} - 47 \, \sqrt{2 \, x + 3}\right )}}{3 \,{\left (2 \, x + 3\right )}^{2} - 16 \, x - 19} - 41 \, \log \left (\sqrt{2 \, x + 3} + 1\right ) + 41 \, \log \left ({\left | \sqrt{2 \, x + 3} - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]